﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ws_appPrivada/msContenido.Master" AutoEventWireup="true" CodeBehind="wMantEmpresas.aspx.cs" Inherits="SRPCENTRIA.ws_appPrivada.wMantEmpresas" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript" language="javascript">
    function mostrardiv() {
        div = document.getElementById('ocultar');
        div.style.display = "block";
    }
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<form runat="server" id="frmRubro">

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td background="images/caja04.gif" width="14">
                    &nbsp;</td>
                <td bgcolor="#FFFFFF">
                    <h1>
                        Mantenimiento de Empresa breca</h1>
                    <div class="round">
                        <span class="top"></span>
                        <div class="contenido">
                            <h3>
                                Buscar Empresa Breca</h3>
                            <table cellpadding="2" cellspacing="2" width="100%">
                                <tr>
                                    <td width="140px">
                                        Nombre de Empresa Breca:</td>
                                    <td>
                                        <asp:TextBox ID="txtBuscar" runat="server" class="formularios" Width="99%" onblur="this.value = this.value.toUpperCase()"></asp:TextBox>
                                             <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="txtdescripcion" 
                                                ValidChars="ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyzáéíóú()ÁÉÍÓÚ. ">
                                            </cc1:FilteredTextBoxExtender>
                                     
                                    </td>
                                    <td align="center" width="130">
                                        <asp:Button ID="btnBuscar" runat="server" class="submitBtn" 
                                            onclick="btnBuscar_Click" Text="Buscar" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <span class="bottom"></span>
                    </div>
                    <div class="round">
                        <span class="top"></span>
                        <div class="contenido">
                            <h3>
                                resultado</h3>
                            <p>
                                <asp:HiddenField ID="hdnCodigo" runat="server" />
                            </p>
                            <asp:Label ID="lblError" runat="server" BackColor="#9A5454" BorderStyle="None" 
                                Font-Strikeout="False" ForeColor="White" Visible="False" Width="100%"></asp:Label>
                            <asp:GridView ID="grvDatos" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" class="tablaMain" 
                                onpageindexchanging="grvDatos_PageIndexChanging" 
                                onselectedindexchanged="grvDatos_SelectedIndexChanged" PageSize="5">
                                <Columns>
                                    <asp:BoundField DataField="VCEN_COD_EMPRESA_CENTRIA" HeaderText="Código">
                                    <ItemStyle CssClass="columnaOscura" Width="1%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="VCEN_DESC_EMPRESA_CENTRIA" HeaderText="Nombre">
                                    <ItemStyle CssClass="columnaOscura" Width="220px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Estado" HeaderText="Estado">
                                    <ItemStyle CssClass="columnaOscura" Width="1%" />
                                    </asp:BoundField>
                                    <asp:CommandField ButtonType="Image" HeaderText="Editar" 
                                        SelectImageUrl="~/images/ico_editar.gif" ShowSelectButton="True" >
                                    <ItemStyle Width="1%" />
                                    </asp:CommandField>
                                </Columns>
                            </asp:GridView>
                        </div>
                        <span class="bottom"></span>
                    </div>
                    <asp:Panel ID="pnlmantenimieto" runat="server" CssClass="CajaDialogo" 
                        Width="100%">
                        <div class="round">
                            <span class="top"><span></span></span>
                            <div class="contenido">
                                <h3>
                                    Nuevo / Editar Empresa breca</h3>
                                <table cellpadding="2" cellspacing="2" width="99%">
                                    <tr>
                                        <td align="right">
                                            Nombre&nbsp;de&nbsp;Empresa&nbsp;Breca:</td>
                                        <td align="center">
                                            <asp:TextBox ID="txtdescripcion" runat="server" class="formularios" onblur="this.value = this.value.toUpperCase()" Width="99%"
                                                MaxLength="50"></asp:TextBox>
                                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtdender1" runat="server" TargetControlID="txtdescripcion" 
                                                ValidChars="ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyzáéíóú()ÁÉÍÓÚ. ">
                                            </cc1:FilteredTextBoxExtender>
                                     

                                        </td>
                                        <td align="right">
                                            Activo:</td>
                                        <td align="center">
                                            <asp:CheckBox ID="chkEstado" runat="server" />
                                        </td>
                                        <td>
                                            <asp:Button ID="btnAgregar" runat="server" class="submitBtn" 
                                                onclick="btnAgregar_Click" Text="Agregar Empresa Breca" />
                                            <asp:Button ID="btnEditar" runat="server" class="submitBtn" 
                                                onclick="btnEditar_Click" Text="Actualizar Empresa Breca" 
                                                Visible="false" />
                                        </td>
                                    </tr>
                                </table>
                                <span class="bottom"><span></span></span>
                            </div>
                        </div>
                    </asp:Panel>
                    <p align="center">
                    </p>
                </td>
                <td background="images/caja05.gif" width="14">
                    &nbsp;</td>
            </tr>
            <tr>
                <td width="14">
                    &nbsp;</td>
                <td background="images/caja07.gif">
                </td>
                <td width="14">
                    &nbsp;</td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>

<table width=100%>
   <td valign="top">
       &nbsp;</td>
</table>

</form>
</asp:Content>
